<html>
<head>
<link href="./public/css/uploadify/default.css" rel="stylesheet" type="text/css" />
<link href="./public/css/ajaxupload/ajaxupload.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseUrl();?>/library/JQuery/ajaxupload/ajaxupload.js"></script>
<script type="text/javascript" src="<?php echo $this->baseUrl();?>/public/js/dashboard/config.js"></script>

</head>


<div>
	<div id="delete_module" style="display:none;">
	<p><span class="" style="float:left; margin:0 7px 20px 0;"></span>Ce module sera d&eacute;finitivement supprimer</p>
</div>

	<form action="">
		<p class="text_titre">
			<?php echo DASHBOARD_BODY_SELECT_TITLE; ?>
		</p>
		<p class="text_normal">
			<?php echo DASHBOARD_BODY_SELECT_WELCOME; ?>
		</p>
		<p class="text_italic">
			<?php echo DASHBOARD_BODY_SELECT_HELP; ?>
		</p>
		<p>
			<div class=" content">
			<table><tr>
				<td valign="top">
					<?php echo DASHBOARD_BODY_SELECT_DISP; ?>
					<br/>
					<br/>
					<ul id="dashboard_list1" class="dashboardList">
					<?php foreach ($this->lst1 as $key => $value) { ?>
						<li class='ui-state-default'>
							<input type='hidden' value='<?php echo $value->getIdDashboard(); ?>'/>
							<table>
								<tr>
									<?php
										$rowspan = 3;
										if ($value->getNbUtilisateur() == 0) { $rowspan = 4; }
									?>
									<td rowspan="<?php echo $rowspan; ?>" valign="top">
										<img alt="module" src="<?php echo $this->baseUrl(); ?>/public/img/module/<?php echo $value->getImg(); ?>" width="30"/>
									</td>
									<td valign="top">
										<?php echo $value->getModuleDashboard(); ?><br/>
										<span class="dashboard_module_contenu">Par <a href="mailto:<?php echo $value->getEmail(); ?>"><?php echo $value->getAuteur(); ?></a></span>
									</td>
								</tr>
								<tr>
									<td valign="top" class="dashboard_module_contenu"><label id="descriptionDashboard" title="<?php echo $value->getDescription(); ?>"><?php echo substr($value->getDescription(), 0, 20) . "[...]"; ?> </label></td>
								</tr>
								<tr>
									<td class="dashboard_module_contenu" valign="top">
										<?php echo DASHBOARD_BODY_SELECT_USE1; ?> <?php echo $value->getNbUtilisateur(); ?> <?php echo DASHBOARD_BODY_SELECT_USE2; ?>
									</td>
								</tr>
								<?php if ($value->getNbUtilisateur() == 0) { ?>
									<tr>
										<td class="dashboard_icon" valign="top">
								<a onclick="validWindows('deleteModule', '<?php echo $value->getUrl() ?>')" class="dashboard_module_contenu"><img alt="delete" src="<?php echo $this->baseUrl();?>/public/img/base/icone/delete.png" width="9"/> <?php echo DASHBOARD_BODY_SELECT_DEL; ?></a>
										</td>
									</tr>
								<?php } ?>
							</table>
						</li>
					<?php } ?>
					</ul>
				</td>
				<td valign="top">
					<?php echo DASHBOARD_BODY_SELECT_MINE; ?>
					<br/>
					<br/>
					<ul id="dashboard_list2" class="dashboardList">
					<?php foreach ($this->lst2 as $key => $value) { ?>
						<li class='ui-state-default' >
							<input type='hidden' value='<?php echo $value->getIdDashboard(); ?>'/>	
							<table>
								<tr>
									<?php $rowspan = 3; ?>
									<td rowspan="<?php echo $rowspan; ?>" valign="top">
										<img src="<?php echo $this->baseUrl(); ?>/public/img/module/<?php echo $value->getImg(); ?>" width="30"/>
									</td>
									<td valign="top">
										<?php echo $value->getModuleDashboard(); ?><br/>
										<span class="dashboard_module_contenu">Par <a href="mailto:<?php echo $value->getEmail(); ?>"><?php echo $value->getAuteur(); ?></a></span>
									</td>
								</tr>
								<tr>
									<td valign="top" class="dashboard_module_contenu"><label id="descriptionDashboard" title="<?php echo $value->getDescription(); ?>"><?php echo substr($value->getDescription(), 0, 20) . "[...]"; ?> </label></td>
								</tr>
								<tr>
									<td class="dashboard_module_contenu" valign="top">
										<?php echo DASHBOARD_BODY_SELECT_USE1; ?> <?php echo $value->getNbUtilisateur(); ?> <?php echo DASHBOARD_BODY_SELECT_USE2; ?>
									</td>
								</tr>
							</table>
						</li>
					<?php } ?>
					</ul>
				</td>
			</tr></table>
			</div>
		</p>
	</form>
</div>

<!-- Dialog Ajouter module -->
<div id="dialogAddModule" style="display:none;" title="Ajouter module">
	<p><?php echo DASHBOARD_BODY_SELECT_FORMAT; ?></p><br/>
	<a id="button4" class="boutonUtilisateur"><?php echo DASHBOARD_BODY_SELECT_UPLOAD; ?></a>
	<br/><br/>
	<div id="retour"></div>
</div>

